<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div class="header" >
    <a  class="left-btn pointer" href="{$appkoudai}?m=product"><span class="iconfont icon-back"></span></a>
    <div class="title">每月产品销售统计</div>
  </div>
 	<div class="tabs-border">
    	<div class="item"><a href="{$appkoudai}?m=stat_product_day">每日统计</a></div>
        <div class="item active"><a href="{$appkoudai}?m=stat_product_month">每月统计</a></div>
    </div>
<form method="get" class="row pd-10">
	<input type="hidden" name="m" value="stat_product_month">
 
      <label>日期</label>
      <input type="text" value="{$kmonth}" name="kmonth" onClick="WdatePicker({dateFmt:'yyyyMM'})">
   
 
 
    <button type="submit" class="btn">查询</button>
 
</form>
<div style="width: 100%; overflow: auto;"> 
<table class="table" style="min-width: 600px;">
	<thead>
		<tr>
			<th>日期</th>
			<th>产品名称</th>
			<th>销售数量</th>
			<th>合计金额</th>
			<th>合计成本</th>
			<th>合计利润</th>
		</tr>
	</thead>
	<tbody>
		{foreach item=c from=$list}
		<tr>
			<td>{$c.kmonth}</td>
			<td>{$c['title']} </td>
			<td>{$c.ordernum}</td>
			<td>{$c.money}</td>
			<td>{$c.costmoney}</td>
			<td>{$c.profitmoney}</td>
		</tr>
		
		{/foreach}
	</tbody>
	
</table> 
</div> 
<div>{$pagelist}</div>
{include file="footer.html"}
  
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
</div>
</body>
</html>